package cn.community.system.service;

import cn.community.system.domain.Activity;
import cn.community.system.query.ActivityRecordQuery;
import cn.community.system.query.QueryObject;
import cn.community.system.domain.ActivityRecord;
import cn.community.system.vo.ActivityRecordVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IActivityRecordService {
    void delete(Long id);
    void save(ActivityRecordVo activityRecord);
    void save2(ActivityRecordVo activityRecord);

    ActivityRecord get(Long id);
    List<ActivityRecord> listAll();

    void update(ActivityRecordVo activityRecord);
    void update2(ActivityRecordVo activityRecord);

    // 分页
    PageInfo query(QueryObject qo);

    PageInfo queryAsso(ActivityRecordQuery qo);

    void applyActivity(Long id);

    PageInfo queryMember(ActivityRecordQuery qo);

    void passOne(Long id, Integer hot);

    void refuseOne(ActivityRecord activityRecord);

    void batchPass(Long[] ids);

    ActivityRecordVo getVo(Long id);

    List<ActivityRecord> getByApplySuccess(Long id);

    void cancelApply(Long id);

    ActivityRecord getByIds(Long activityId, Long applicantId);
}
